<!DOCTYPE html>
<html>

<head>
    <title>{$info.company}</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <include file="Share:meta" />
    <style type="text/css">
    .uploadImage {
        padding-top: 50px;
        color: #000;
    }
    
    .uploadImage .header {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
        background-color: #595757;
        height: 50px;
        display: block; z-index: 100;
    }
    
    .uploadImage .header>div>a {
        line-height: 50px;
        font-size: 16px;
    }
    
    .uploadImage .header>div>button {
        height: 50px;
        background-color: #595757;
        box-shadow: none;
        border: 0px;
        font-size: 16px;
    }

    .uploadImage .row img{width: 280px;margin-top: 70px;padding: 3px;box-shadow: 1px 1px 10px 3px #ccc;}
    .uploadImage .row .upbutton{margin-top: 50px;}
    .uploadImage .row .upbutton label{width: 90%;height: 50px;font-size: 16px;}
    </style>
</head>
<body>
    <div id="userList" class="container-fluid uploadImage" style="background-color:#fff;">
    <form action="" method="POST" class="form-horizontal" role="form" enctype="multipart/form-data">
        <div class="header">
            <div class="col-xs-3 textcenter">
                <a href="/bizcard/account.html">返回</a>
            </div>
            <div class="col-xs-6 textcenter">
                <a href="#">微信二维码</a>
            </div>
            <div class="col-xs-3 textcenter">
                <button type="submit" class="btn btn-info">保存</button>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12">
                <center>
                    <img v-bind:src="userInfo.wx_url" class="img-responsive" onerror="this.src='../Public/img/logo.jpg'"/>
                </center>
            </div>
        </div>
        <input type="hidden" name="cid" class="form-control" v-model="userInfo.cid"
        required="required" />
        <div class="row" >
            <div class="col-xs-12 upbutton">
                <center> <label title="上传图片" for="inputImage" class="btn btn-success">
                    <i class="fa fa-upload fa-2x" ></i>
                    <input type="file" name="wxImg" id="inputImage" class="hide"> 微信二维码
                </label></center>
            </div>
        </div>
    </form>

            

    </div>
</body>
<include file="Share:toast" />
<script type="text/javascript">
    var HjVue = new Vue({
        el: '#userList',
        data: {
            userInfo:{
                'cid' : '{$info.cid}',
                'wx_url' : '{$info.wx_img_url}'
            }
        },
        methods:{
            loadData: function(){
            }
        }
    });
</script>
</html>
